package cn.sourcespro.shiro.security;

import lombok.Getter;
import lombok.Setter;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * JwtToken
 *
 * @author zhanghaowei
 * @date 2018/7/20
 */
@Getter
@Setter
public class JwtToken implements AuthenticationToken {

    /**
     * jwt
     */
    private String jwt;

    /**
     * host
     */
    private String host;

    @Override
    public Object getPrincipal() {
        return this.jwt;
    }

    @Override
    public Object getCredentials() {
        return true;
    }
}
